package com.topscore.uke.mvp.contractors;

import com.topscore.uke.entities.AddressListItem;
import com.topscore.uke.mvp.BaseContractor;
import com.topscore.uke.mvp.model.BaseHttpListener;
import com.topscore.uke.mvp.views.BaseView;
import com.topscore.uke.network.request.SaveMemberAddressRequest;
import com.topscore.uke.network.retrofit.ApiService;
import com.topscore.uke.network.retrofit.NetClientPostJson;

/**
 * Created by 71468 on 2017/11/21.
 */

public interface SaveMemberAddressContractor extends BaseContractor {
    ApiService mService = NetClientPostJson.getInstance().net().create(ApiService.class);

    interface Model {
        void save(SaveMemberAddressRequest request);

        void delete(String id);

        interface CallBack extends BaseHttpListener {
            void onSaveSuccess();

            void onDeleteSuccess();
        }
    }

    interface View extends BaseView {
        void onSaveAddressSuccess();

        void onDeleteAddressSuccess(AddressListItem item);
    }

    interface Presenter {
        void saveAddressInfo(SaveMemberAddressRequest request);

        void deleteAddressItem(AddressListItem item);
    }

}
